Skip to content

Conversation

renyuantime
Copy link

Summary

This PR adds the "Function Call" feature to the assistant. It allows users to register and implement custom functions in the OpenAI system.

Changes Implemented:

  1. Function Call Logic:

    • Implemented logic for retrieving function calls from the system.
    • Submitting function call results back to the agents for processing.
    • Displays function call inputs and outputs within the system interface.
  2. File Search Tool Enhancements:

    • Implemented rendering quotations for file search tool.
  3. README Update:

    • Updated the README to document how the function call feature works.

How to Test

  1. Register a new function in OpenAI’s Playground.
  2. Map the function in the function_map attribute.
  3. Implement the function in the EventHandler class.

Related Issues:

@renyuantime
Copy link
Author

Hi @willydouhard, could you review my pull request? I added function call feature.

@rajavemuri
Copy link

Hi @renyuantime thanks for this. It was really helpful. I see it is missing handling or error in the on_event. Maybe handling thread.run.step.failed and thread.run.failed events and raising an error would be useful

@renyuantime
Copy link
Author

Hi @rajavemuri , thanks man, I will look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The repo doesn't support function calls How to make it compatible with Azure OpenAI Assistants + Function Calling?
2 participants